module.exports = {
    publicPath: process.env.NODE_ENV === 'production' ? 'mj-admin' : '/',
    devServer: {
        proxy: {
            '/api': {
                //target: 'http://127.0.0.1:8821',
                target: 'http://106.13.123.213:8821',
                changeOrigin: true,
                ws: true,
                pathRewrite: {
                    '^/api': ''
                }
            }
        }
    },
    configureWebpack: {
        module: {
            rules: [
            //   {
            //     test: /\.less$/,
            //     loader: "style-loader!css-loader!less-loader"
            //   },
            //   {
            //     test: /\.vue$/,
            //     loader: 'vue-loader',
            //   },
            ]
        }
    }
}
